<template>
  <div class="index-page">
    <div class="content-container">
      <!-- 主要内容区域 -->
      <div class="main-content">
        <!-- 图标区域 -->
        <div class="icon-container">
          <svg class="construction-icon" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M12 2L13.09 8.26L22 9L13.09 9.74L12 16L10.91 9.74L2 9L10.91 8.26L12 2Z" fill="currentColor" />
            <path
              d="M19 15L20.09 18.26L24 19L20.09 19.74L19 23L17.91 19.74L14 19L17.91 18.26L19 15Z"
              fill="currentColor"
            />
            <path d="M5 15L6.09 18.26L10 19L6.09 19.74L5 23L3.91 19.74L0 19L3.91 18.26L5 15Z" fill="currentColor" />
          </svg>
        </div>

        <!-- 标题 -->
        <h1 class="main-title">功能建设中</h1>

        <!-- 副标题 -->
        <p class="subtitle">我们正在努力完善系统功能，敬请期待</p>

        <!-- 联系信息 -->
        <div class="contact-info">
          <p>如有疑问，请联系技术支持</p>
          <a href="mailto:support@hospital.com" class="contact-link">support@hospital.com</a>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup name="Index">
// 页面逻辑可以在这里添加
</script>

<style lang="scss" scoped>
@use '@/assets/styles/variables.module.scss' as *;

.index-page {
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;

  // 背景装饰
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
  }
}

.content-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
}

.main-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-container {
  margin-bottom: 2rem;

  .construction-icon {
    width: 80px;
    height: 80px;
    color: #667eea;
  }
}

.main-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.25rem;
  color: #718096;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.progress-container {
  margin-bottom: 4rem;

  .progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 0 auto 1rem;
    overflow: hidden;

    .progress-fill {
      height: 100%;
      width: 75%;
      background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
      border-radius: 4px;
      animation: progress-animation 2s ease-out;
    }
  }

  .progress-text {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
  }
}

@keyframes progress-animation {
  from {
    width: 0%;
  }
  to {
    width: 75%;
  }
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;

  .feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
      background: rgba(255, 255, 255, 0.95);
    }

    .card-icon {
      width: 48px;
      height: 48px;
      margin: 0 auto 1.5rem;
      color: #667eea;

      svg {
        width: 100%;
        height: 100%;
      }
    }

    h3 {
      font-size: 1.25rem;
      font-weight: 600;
      color: #2d3748;
      margin-bottom: 0.5rem;
    }

    p {
      color: #718096;
      font-size: 0.95rem;
      line-height: 1.5;
    }
  }
}

.contact-info {
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);

  p {
    color: #718096;
    margin-bottom: 0.5rem;
  }

  .contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;

    &:hover {
      color: #764ba2;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .index-page {
    padding: 1rem;
  }

  .main-content {
    padding: 3rem 2rem;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .icon-container .construction-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 2rem 1.5rem;
  }

  .main-title {
    font-size: 2rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}
</style>
